package yaner.hotel.manager.resource.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import yaner.hotel.manager.common.dto.role.RoleAddDto;
import yaner.hotel.manager.common.dto.role.RoleUpdateDto;
import yaner.hotel.manager.common.vo.RoleVo;
import yaner.hotel.manager.resource.entity.Role;

@Mapper
public interface IRoleMapper {
    IRoleMapper INSTANCE = Mappers.getMapper(IRoleMapper.class);

    RoleVo toVo(Role role);

    Role toAddEntity(RoleAddDto roleAddDto);

    Role toUpdateEntity(RoleUpdateDto roleUpdateDto);
}
